package com.ruoyi.grade.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class MsUser {

  @TableId(type = IdType.AUTO)
  private Long userId;

  private Long deptId;

  @Excel(name = "学号")
  private String userName;

  private String nickName;

  private String userType;

  private String email;

  private String phonenumber;

  private String sex;

  private String avatar;

  @Excel(name = "登陆密码")
  private String password;

  private String status;

  private String loginIp;

  private LocalDateTime loginDate;

  @TableLogic(value = "0", delval = "2")
  private String delFlag;

  private String remark;

  @TableField(fill = FieldFill.INSERT)
  private String createBy;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @TableField(fill = FieldFill.UPDATE)
  private String updateBy;

  @TableField(fill = FieldFill.UPDATE)
  private LocalDateTime updateTime;
}
